const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // 用好计算属性 zuocecaidan 数组 ()=>
  // menus 用户互信 后台返回的
  menus: state => state.user.userInfo.roles.menus,
  routes: state => state.permission.routes, // 导出当前的路由
  roles: state => state.user.userInfo.roles // 存储用户的权限
}
export default getters
